<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="vo.Information"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'info_delete_show.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet"
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>


</head>

<body>
	<%
		request.setCharacterEncoding("UTF-8");

		ArrayList l = (ArrayList) request.getAttribute("delete_show");
	%>

	<table class="table table-condensed">
		<caption>所有名片</caption>
		<thead>
			<tr>
				<th>姓名</th>
				<th>电话</th>
				<th>地址</th>
				<th>简介</th>
				<th></th>
				<th></th>
			</tr>
		</thead>
		<%
			for (int i = 0; i < l.size(); i++) {
				Information s = (Information) l.get(i);
				int info_id = s.getInfo_id();
		%>

		<tbody>

			<tr>
				<td><%=s.getInfo_name()%></td>
				<td><%=s.getInfo_phone()%></td>
				<td><%=s.getInfo_address()%></td>
				<td><%=s.getInfo_introduction()%></td>


				<td><a
					href="/CardSystem3.0/DeleteToRecycle?info_id=<%=info_id%>"><button
							type="button" class="btn btn-success">放入回收站</button> </a></td>
				<td><a href="/CardSystem3.0/DeleteAway?info_id=<%=info_id%>"><button
							type="button" class="btn btn-danger">删除</button> </a></td>
			</tr>

			<%
				}
			%>
		</tbody>


	</table>

</body>	
</html>
